package com.lili.model.promotion;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName
public class CouponActivity {
    /**
     * ID  雪花算法
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 删除标志 true/false 删除/未删除
     */
    @TableLogic(value = "false", delval = "true")
    private Boolean delete_Flag;
    /**
     * 更新者
     */
    private String update_By;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime create_Time;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime update_Time;
    /**
     * 结束时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime end_time;
    /**
     * 活动名称
     */
    private String promotion_name;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime start_time;
    /**
     * 范围关联id
     */
    private String store_id;
    /**
     * 范围关联类型
     */
    private String scope_type;
    /**
     * 范围关联id
     */
    private String scope_id;
    /**
     * 商品名称
     */
    private String store_name;
    /**
     * 活动范围
     */

    String activity_scope;
    /**
     * 活动范围
     */
   String activity_scope_info;
    /**
     * 优惠卷活动类型
     */
    String coupon_activity_type;

    /**
     * 领取周期
     */
   String coupon_frequency_enum;
}
